import { createApp } from "vue";
import App from "./App.vue";
import VueCesium from "vue-cesium";
import "vue-cesium/dist/index.css";
import zhCN from 'vue-cesium/es/locale/lang/zh-hans'

const app = createApp(App);

//由于Cesium更新可能有破坏性更新，建议在生产环境中锁定 Cesium 版本
//cesiumPath: 'https://unpkg.com/cesium@1.104.0/Build/Cesium/Cesium.js'
app.use(VueCesium, {
  cesiumPath: "https://unpkg.com/cesium@latest/Build/Cesium/Cesium.js",
  accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzODMyZGJjZC04ZTY1LTRlYmEtYjhjMS0zMTFiOTM5MDI2MDAiLCJpZCI6ODIwMDksImlhdCI6MTY0NDQ3MDI3MH0.4dOEuDJrpBqeAV7CGb6k6y5zOf5joaP7VSYufD0Q0yM",
  locale: zhCN,
});

app.mount("#app");
